package com.ruoyi.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 立勤
 * @date 2023/07/18 19:22:07
 */
@Data
@Component
@ConfigurationProperties(prefix = "xytp")
public class XytpVoteConfig {
    private int timeoutXcx;
    private String nwIp;
    private int nwPort;
    private Mall mall;
    private Vote vote;

    @Data
    public static class Mall {
        private String notifyHost;
    }

    @Data
    public static class Vote {
        private int limit;
        private int basis;
        private int ratio;
    }
}
